<template>
    <div>
        <van-nav-bar title="资讯详情" left-arrow @click-left="$router.go(-1)" />
        <div>
            <h3>{{ listData.title1 }}</h3>
        </div>
    </div>
</template>
<script setup lang="ts">
import { request } from '@/axios/request';
import { ref } from 'vue';

interface ListType{
    h3:string
    title1:string
    title2:string
    img:string
}

const listData:any=ref<ListType>()

const getData = async () => {
    const res=await request.get('/v3/inforlist')
    listData.value= res.data.inforList
    console.log(res.data.inforList)
    
}
getData()
</script>